<?php
	if(!isset($rootdir)) $rootdir = "/home/nrb62281/public_html";
	include_once($rootdir . "/wowsig/DataSources/armoryinterface.php");
	include_once($rootdir . "/wowsig/DataSources/WoWAPI.php");
	
	class webManager{
		private $webSource;
		function __construct(){
			//$this->webSource = new armoryInterfaceDataSource;
			$this->webSource = new WoWAPIDataSource;
		}
		
		public function setWebSource($newWebSource){
			$this->webSource = $newWebSource;
		}
		
		public function getCharacterFromWeb($characterName, $realmName, $region){
			return $this->webSource->getCharacter($characterName, $realmName, $region);
		}
	}
?>